package com.hjh.redisdemo;

import com.hjh.redisdemo.entity.UserBean;
import com.hjh.redisdemo.service.IUserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest
public class UserBeanServiceTester {

    @Resource
    private IUserService userService;

    @Test
    public void testGetUser(){
        UserBean user = userService.getUser("admin");
        System.out.println(user);
        UserBean user1 = userService.getUser("hezong");
        System.out.println(user1);
    }
}
